/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 退单Entity
 * @author zad
 * @version 2018-01-25
 */
public class EmsOrderRefund extends DataEntity<EmsOrderRefund> {
	
	private static final long serialVersionUID = 1L;
	// private String orderId;		// 所属订单
	private EmsOrder order;		// 所属订单
	private String name;		// 订单名称
	private String type;		// 是否前台订单
	private Double sumMoney;		// 实际金额
	private Double payMoney;		// 应付金额
	private Date successDate;		// 接口返回时间
	private String status;		// 状态
	
	public EmsOrderRefund() {
		super();
	}

	public EmsOrderRefund(String id){
		super(id);
	}

	/*@Length(min=1, max=64, message="所属订单长度必须介于 1 和 64 之间")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}*/
	
	@Length(min=1, max=32, message="订单名称长度必须介于 1 和 32 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=2, message="是否前台订单长度必须介于 1 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@NotNull(message="实际金额不能为空")
	public Double getSumMoney() {
		return sumMoney;
	}

	public void setSumMoney(Double sumMoney) {
		this.sumMoney = sumMoney;
	}
	
	@NotNull(message="应付金额不能为空")
	public Double getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(Double payMoney) {
		this.payMoney = payMoney;
	}
	
	public Date getSuccessDate() {
		return successDate;
	}

	public void setSuccessDate(Date successDate) {
		this.successDate = successDate;
	}

	@Length(min=1, max=2, message="状态长度必须介于 1 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public EmsOrder getOrder() {
		return order;
	}

	public void setOrder(EmsOrder order) {
		this.order = order;
	}
	
}